package com.poly.cms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.poly.common.database.domain.DefaultBaseEntity;
import lombok.Data;

/**
 * 频道信息对象 cms_channel
 *
 * @author poly
 * @date 2023-10-25
 */
@Data
@TableName(value = "cms_channel")
public class CmsChannel extends DefaultBaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(type = IdType.ASSIGN_ID, value = "id")
    private Long id;

    /**
     * 频道名称
     */
    @TableField(value = "channel_name")
    private String channelName;

    /**
     * 频道英文名称
     */
    @TableField(value = "english_name")
    private String englishName;

    /**
     * 上级编号
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 序号
     */
    @TableField(value = "sort")
    private Long sort;

    /**
     * 目标方式;BLANK,PARENT,TOP
     */
    @TableField(value = "target")
    private String target;

    /**
     * 分组名称
     */
    @TableField(value = "group_name")
    private String groupName;

    /**
     * 开启点赞
     */
    @TableField(value = "open_like")
    private Integer openLike;

    /**
     * 开启评论
     */
    @TableField(value = "open_comment")
    private Integer openComment;

    /**
     * 连接地址
     */
    @TableField(value = "link_url")
    private String linkUrl;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 背景图
     */
    @TableField(value = "image")
    private String image;



}
